/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package metier.session;

import java.util.List;
import metier.pojo.Client;
import metier.tools.Filter;

/**
 *
 * @author Adrien
 */
public interface IClientManager {

    void addClient(String nom, String prenom, String email, String ville);

    List<Client> getClients();
    
    void desactiverClient(long id);
    
    void activerClient(long id);
    
    Client findClient (long id);
    
    List<Client> findClientByNomAndPrenom(String mc);
    
    List<Client> findClientByVille(String ville);
    
    public List<metier.pojo.Client> findClientByFilter(List<Filter> filtres);
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
    
   public List<metier.pojo.Compte> getComptes (long id_utilisateur); 
   
   public  void addCompte(long id_possesseur, String nom, float montant);
   
   public boolean transfert(long id_debiteur, long id_crediteur, float Montant);
   
   public int delCompte(long id);
   
   public metier.pojo.Compte getCompteWithVirementsAndPossesseur(long id_utilisateur, long id_compte);

    public Client findClientWithAccount(long id);
    
    public void setPassword();
    
    public Client testPassword(String email, String password, Integer password_otp);
}
